<?php
namespace Home\Model;
use Think\Model\RelationModel;
class MembersModel extends RelationModel{ 
protected $_validate=array();
protected $_auto=array();
public function getdata(){
	return data("ymdhis");
}  
 protected $_link = array(  
 	'groups'=>array(     
        'mapping_type'  => self::BELONGS_TO,   
        'class_name'    => 'groups',  
        'foreign_key'   => 'ydq_gid',  
        'mapping_name'  => 'ydq_groups',
        'mapping_fields' => 'ydq_groupname,ydq_team,ydq_intro,ydq_logo,ydq_regdate,ydq_createtime,ydq_leader',
        'as_fields'=>'ydq_groupname,ydq_team,ydq_intro,ydq_logo,ydq_regdate,ydq_createtime,ydq_leader')
 	);

}